package com.financing.wap.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IInfoSubscribeDao;
import com.financing.wap.dto.InfoSubscribeDTO;



@Repository("infoSubscribeDaoImpl")
@SuppressWarnings(value={"deprecation"})
public class InfoSubscribeDaoImpl extends BaseDaoImpl<InfoSubscribeDTO, java.lang.Integer> implements IInfoSubscribeDao {

	@Override
	public List<InfoSubscribeDTO> queryInfoSubscribeList(
			InfoSubscribeDTO infoSubscribeDTO) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insertInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.ADD_INFO_SUBSCRIBE, infoSubscribeDTO);
	}
	@Override
	public InfoSubscribeDTO queryInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		return (InfoSubscribeDTO)this.sqlMapClientTemplate.queryForObject(SqlName.QUERY_INFO_SUBSCRIBE, infoSubscribeDTO);
	}
	@Override
	public int updateInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		return (Integer) this.sqlMapClientTemplate.update(SqlName.UPDATE_INFO_SUBSCRIBE, infoSubscribeDTO);
	}
	
	@Override
	public Class<InfoSubscribeDTO> getEntityClass() {
		return InfoSubscribeDTO.class;
	}

}
